<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/30
 * Time: 10:59
 */
namespace vendor;
use vendor\core\order;
use vendor\core\commonOrder;
use vendor\core\integralOrder;
require 'core\order.php';
$ord = new order();
$ord->createOrder();
$funName = 'createOrder';
echo '<br />';
$order1->$funName();
echo '<br />';
call_user_func_array([$order1,$funName],[]);
$order2 = new order(56);
echo '用户ID: '.$order2->userId;
echo '<br />';
$order2->createOrder();